<?php
/* @var $this EventController */
/* @var $model Event */

$this->breadcrumbs=array(
	'Events'=>array('index'),
	$model->title,
);

$this->menu=array(
	array('label'=>'List Event', 'url'=>array('index')),
	array('label'=>'Create Event', 'url'=>array('create')),
	array('label'=>'Update Event', 'url'=>array('update', 'id'=>$model->id)),
	array('label'=>'Delete Event', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Manage Event', 'url'=>array('admin')),
);
?>

<h1>View Event #<?php echo $model->id; ?></h1>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'id',
		'companyid',
		'title',
		'description:html', 
		'share:html', 
		'award', 
		array(
			'label'=>'thumbnail',
            'type'=>'raw',
	 		'value'=>'<img src="'.str_replace(dirname(Yii::app()->BasePath) , Yii::app()->request->hostInfo.dirname(Yii::app()->homeUrl) , $model->thumbnail).'" height="200"/>',		
		), 
		array(
			'label'=>'background',
            'type'=>'raw',
	 		'value'=>'<img src="'.str_replace(dirname(Yii::app()->BasePath) , Yii::app()->request->hostInfo.dirname(Yii::app()->homeUrl) , $model->background).'" height="200"/>',		
		), 
		
		'hit',
		'starttime',
		'endtime',
	),
)); ?>
